<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>充值商户后台</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" href="../static/x-admin/css/font.css">
    <link rel="stylesheet" href="../static/x-admin/css/xadmin.css">
    <!-- <link rel="stylesheet" href="./css/theme5.css"> -->
    <script src="../static/x-admin/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="../static/x-admin/js/xadmin.js"></script>
    <script type="text/javascript" src="../static/js/jquery-3.5.1.min.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script>
        // 是否开启刷新记忆tab功能
        // var is_remember = false;
    </script>
</head>

<body>
    <script>

    </script>

    <div class="layui-fluid">
        <div class="layui-collapse">
           <div class="layui-card">
               <div class="layui-card-header"><strong>添加分区</strong></div>
               <div class="layui-card-body">
                   <form class="layui-form" action="">
                       <div class="layui-form-item">
                           <label class="layui-form-label">分区名称</label>
                           <div class="layui-input-inline">
                               <input type="text" name="areaname" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                           </div>
                       </div>
                       <div class="layui-form-item">
                           <label class="layui-form-label">选择分组</label>
                           <div class="layui-input-inline">
                               <select name="groupname" lay-verify="required">
                                   <option value=""></option>
                                   <option value="0">轩辕</option>
                                   <option value="1">日狗</option>
                               </select>
                           </div>
                       </div>

                       <div class="layui-form-item">
                           <label class="layui-form-label">选择模板</label>
                           <div class="layui-input-inline">
                               <select name="selecttemplete" lay-verify="required">
                                   <option value=""></option>
                                   <option value="xingsha">星沙二区</option>
                                   <option value="dongguan">东莞</option>
                                   <option value="huizhou">惠州</option>
                               </select>
                           </div>
                       </div>

                       <div class="layui-form-item">
                           <label class="layui-form-label">通知地址</label>
                           <div class="layui-input-block">
                               <input type="text" name="notifyaddress" required lay-verify="required" autocomplete="on" class="layui-input">
                           </div>
                       </div>

                       <div class="layui-form-item layui-form-text">
                           <label class="layui-form-label">附加参数</label>
                           <div class="layui-input-block">
                               <textarea name="desc" placeholder="系统会自动发送必带参数，附加参数只为补充，不填也行。填写格式：key1=value1&key2=value2&key3=value3" class="layui-textarea"></textarea>
                           </div>
                       </div>
                       <div class="layui-form-item">
                           <div class="layui-input-block">
                               <button class="layui-btn" lay-submit lay-filter="formDemo">添加/更新</button>
                               <button type="reset" class="layui-btn layui-btn-primary" onclick="backPrePage();">返回上级</button>
                           </div>
                       </div>
                   </form>
               </div>
           </div>
        </div>
    </div>

    <script>
        // 返回上级页面
        function backPrePage() {
            window.history.back(-1);
        }

        layui.use('form', function () {
            let form = layui.form;
            form.on('submit(back)', function () {
                window.history.back(-1);
            });
        })
    </script>
</body>

</html>